#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
import time
"""
# 将时间转换成时间戳
get_time = time.strftime("%Y-%m-%d %X", time.localtime())
get_struct_time = time.strptime(get_time, "%Y-%m-%d %H:%M:%S")
m_time = time.mktime(get_struct_time)
print("{}\n{}\n{}".format(get_time, get_struct_time, m_time))
"""
# 将时间戳转换成时间
print(time.localtime(time.time()))
get_time = time.strftime("%Y-%m-%d %X", time.localtime(time.time()))
print(get_time)

